package com.greenlife.converter;

import com.greenlife.model.User;
import com.greenlife.model.vo.UserVo;

public class ModelConverterVo {
	public static UserVo userToUserVo(User user) {
		UserVo userVo = new UserVo();
		userVo.setAccount(user.getAccount());
		userVo.setAddress(user.getAddress());
		userVo.setAvatar(user.getAvatar());
		userVo.setCoordinates(user.getCoordinates());
		userVo.setEmail(user.getEmail());
		userVo.setId(user.getId());
		userVo.setIntroduction(user.getIntroduction());
		userVo.setNickName(user.getNickName());
		userVo.setPhoneNumber(user.getPhoneNumber());
		userVo.setQqNumber(user.getQqNumber());
		userVo.setRealName(user.getRealName());
		userVo.setSex(user.getSex());
		return userVo;
	}
}
